Predicate

interface Predicate<T>(source)

Compat version of java.util.function.Predicate

Parameters

<T>

the type of the input to the operation

Functions

Link copied to clipboard
open fun and(other: Predicate<in T>): Predicate<T>
Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.
Link copied to clipboard
open fun <T> isEqual(targetRef: Any): Predicate<T>
Returns a predicate that tests if two arguments are equal according to equals.
Link copied to clipboard
open fun negate(): Predicate<T>
Returns a predicate that represents the logical negation of this predicate.
Link copied to clipboard
open fun <T> not(target: Predicate<in T>): Predicate<T>
Returns a predicate that is the negation of the supplied predicate.
Link copied to clipboard
open fun or(other: Predicate<in T>): Predicate<T>
Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.
Link copied to clipboard
abstract fun test(t: T): Boolean
Evaluates this predicate on the given argument.